$(function () {
    $(".btn-delete").click(function () {
        let url = $(this).data('url');
        Swal.fire({
            title: '你确定?',
            text: "手下留情!",
            icon: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: '痛下杀手!',
            cancelButtonText: '于心不忍'
        }).then((result) => {
            if (result.value) {
                location.href = url;
            }
        })
    })
    $('.input-date').datetimepicker({
        format: 'yyyy-mm-dd hh:ii', //格式
        language: 'zh-CN', //中文
        autoclose: true,//选择后自动关闭
        //showMeridian:true, //是否显示上下午
        minView: 0,//精确到哪位
    });
})